import type { MessageInstance } from 'antd/es/message/interface'

let message: MessageInstance

export function setMessage(obj: MessageInstance) {
  message = obj
}

export default function useMessage() {
  return message
}
